import fetch from 'common/src/utils/fetch';
/**
 * 获取学期
 */
export function getTeamList(id) {
    return fetch({
        url: '/api/baseresservice/schoolCalendar/list',
        method: 'get',
        params: {
            year: id
        }
  });
}

export function findMajorProfessionalSemesterByParam(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSemester/findMajorProfessionalSemesterByParam',
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}


/**
 * 查询年级
 */
export function yearlist() {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSlave/yearlist',
        method: 'get'
    })
}


/**
 * 查询学习层次

 */
export function trainingLevellist(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSlave/trainingLevellist',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

/**
 * 查询学院

 */
export function findfacultylist(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSlave/findfacultylist',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

/**
 * 查询专业

 */
export function majorprofessionlist(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSlave/majorprofessionlist',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}


/**
 * 增加大类专业学期

 */
export function addMajorProfessionalSemester(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSemester/addMajorProfessionalSemester',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}



/**
 * 删除大类专业学期

 */
export function deleteMajorProfessionalSemester(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSemester/deleteMajorProfessionalSemester',
        method: 'delete',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}


/**
 * 修改大类专业学期

 */
export function updateMajorProfessionalSemester(data) {
    return fetch({
        url: '/api/arrangementservice/majorProfessionalSemester/updateMajorProfessionalSemester',
        method: 'put',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}